$(function () {
    $("#marketSearchContent", parent.document).on('click','.marketSearchShop',function () {
        var id = $(this).attr('id');
        var index = layer.open({
            type: 2,
            title: '到店客户详情',
            area: ['60%', '100%'], //宽高
            fix: true, //不固定
            maxmin: true,
            offset: ['0px', '40%'],
            content: Feng.ctxPath + '/reservationsArrive/reservations_arrives/' + id
        });
        this.layerIndex = index;
    });
    $("#marketSearchContent", parent.document).on('click','.marketSearchMake',function () {
        var id = $(this).attr('id');
        var index = layer.open({
            type: 2,
            title: '预约客户详情',
            area: ['60%', '100%'], //宽高
            fix: true, //不固定
            maxmin: true,
            offset: ['0px', '40%'],
            content: Feng.ctxPath + '/reservationsNotArrive/to_reservationsNotDetail/' + id
        });
        this.layerIndex = index;
    });
    $(document).click(function () {
        $("#marketSearchContent",parent.document).hide();
        $("#pageStart",parent.document).val("1")
    })
});